import { createStore } from 'vuex'
import state from './state';
import mutations from './mutations';
import getters from './getters';
import actions from './actions';
//数据持久化
import persistedState from 'vuex-persistedstate'

export const store = createStore({
  plugins: [persistedState()],
  state,
  mutations,
  getters,
  actions,
  // modules,
})